package OOday02;

/*public class Animal {
    String name;
    int age;
    String color;
    Animal(String name,int age,String color){
        this.name=name;
        this.age=age;
        this.color=color;
    }
    void drink(){
        System.out.println(age+"岁"+color+name+"正在喝水...");
    }
    void eat(){
        System.out.println(age+"岁"+color+name+"正在吃饭...");
    }
}
class dog extends Animal{
    dog(String name,int age,String color){
        super(name,age,color);
    }
    void eat() {
        super.eat();
        System.out.println("吃的粑粑...");
    }
    void seeHome(String name1){
        System.out.println(name1+"家的"+name+"在看家...");
    }
}
class fish extends Animal{
    fish(String name,int age,String color){
        super(name,age,color);
    }
    void eat() {
        super.eat();
        System.out.println("吃的鱼粮...");
    }
}
class chicken extends Animal{
    chicken(String name,int age,String color){
        super(name,age,color);
    }
    void eat() {
        super.eat();
        System.out.println("吃的小米");
    }
    void makeAgge(String name2){
        System.out.println(name2+"家的"+name+"在下蛋");
    }
}

 */
